const state = {
  routes: []
}

const mutation = {
  SET_ROUTES (state, routes) {
    state.routes = routes
  }
}

const action = {
  setRoutes ({ commit }, routes) {
    commit('SET_ROUTES', routes)
  }
}

export default {
  namespaced: true,
  state,
  mutation,
  action
}
